package com.A1908.service.impl;

import com.A1908.dao.UserDao;
import com.A1908.dao.impl.UserDaoImpl;
import com.A1908.entity.User;
import com.A1908.service.UserService;

public class UserServiceImpl implements UserService {
    UserDao userDao = new UserDaoImpl();
    @Override
    public User findUser(User user) {
        return userDao.findUser(user);
    }

    @Override
    public User findUserById(int id) {
        return userDao.getUserById(id);
    }

    @Override
    public int addUser(User user) {
        return userDao.addUser(user);
    }

    @Override
    public int editUser(User user) {
        return userDao.editUser(user);
    }

    @Override
    public int deleteUser(User user) {
        return 0;
    }

    public boolean userVerify(User user){
        return new UserDaoImpl().userVerify(user);
    }
}
